package com.ktmall.service.impl;

import com.ktmall.mapper.BannerMapper;
import com.ktmall.pojo.BannerItem;
import com.ktmall.service.BannerService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 轮播图Service实现类
 */
@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public List<BannerItem> findByType(Integer type) {
        return bannerMapper.findByType(type);
    }
}
